package org.jeecg.modules.manage.vo;

import lombok.Data;
import org.jeecg.common.util.oConvertUtils;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;

/**
 * @Description: 结算单导入VO
 * @Author: yfkj
 * @Date:   2023-01-12
 * @Version: V1.0
 */
@Data
public class TaskSettleImportVo implements Serializable,Comparable<TaskSettleImportVo> {
    private static final long serialVersionUID = 1L;


	/**【姓名】*/
    @Excel(name = "【姓名】", width = 15)
    private String name;

    /**【证件类型(1:身份证2:港澳台通行证3：护照4：军官证)】*/
    @Excel(name = "【证件类型(1:身份证2:港澳台通行证3：护照4：军官证)】", width = 15)
    private Integer idCardType;

    /**【身份证号码】*/
    @Excel(name = "【证件号码】", width = 15)
    private String idCard;

    /**【手机号码/微信签约手机号/微信openid】*/
    @Excel(name = "【手机号码/微信签约手机号/微信openid】", width = 15)
    private String phone;

    /**【账号(银行卡号或支付宝邮箱账号)】*/
    @Excel(name = "【银行卡号】", width = 15)
    private String bankCard;

    /**【银行名称（选填）】*/
    @Excel(name = "【银行名称（选填）】", width = 15)
    private String bankName;

    /**【银行卡开户行名称（选填）】*/
    @Excel(name = "【银行卡开户行名称（选填）】", width = 15)
    private String accountName;

    /**【下发金额(单位元)】*/
    @Excel(name = "【下发金额(单位元)】", width = 15)
    private Double money;

    /**【备注】*/
    @Excel(name = "【备注】", width = 15)
    private String remark;

//    /**【下发类型(OTHERBANK:银行卡;ALIPAY:支付宝);WECHAT:微信】*/
//    @Excel(name = "【下发类型(OTHERBANK:银行卡;ALIPAY:支付宝);WECHAT:微信】", width = 15)
//    private String type;




    @Override
    public int compareTo(TaskSettleImportVo o) {
        //比较条件我们定的是按照code的长度升序
        // <0：当前对象比传入对象小。
        // =0：当前对象等于传入对象。
        // >0：当前对象比传入对象大。
        int	 s = this.getIdCard().length() - o.idCard.length();
        return s;
    }

}
